/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.mocking;

import picounit.mocker.MockFactory;

class DefaultMockFactory implements MockFactory {
	private final JMocker mocker;

	public DefaultMockFactory(JMocker mocker) {
		this.mocker = mocker;
	}
	
	public <T> T mock(Class<T> interfaceClass) {
		return mocker.mock(interfaceClass);
	}

	public <T> T mock(Class<T> interfaceClass, String name) {
		return mocker.mock(interfaceClass, name);
	}

	public <T> T stub(Class<T> stubClass, Object implementation) {
		return mocker.stub(stubClass, implementation);
	}

	public <T> T stub(Class<T> stubClass, Object implementation, String name) {
		return mocker.stub(stubClass, implementation, name);
	}
}